<%@ page contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
%>
<html>
  <head>
    <title>导出选项</title>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
	<meta http-equiv="Expires" CONTENT="0"> 
	<meta http-equiv="Cache-Control" CONTENT="no-cache"> 
	<meta http-equiv="Pragma" CONTENT="no-cache">
	<base target="_self">
  </head>
 <style>
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-size: 12px;
	background:	rgb( 252, 252, 254 );
}
td {
	font-family: "宋体";
	font-size: 12px;
	color: #000000;
}
tr {
	font-family: "宋体";
	font-size: 12px;
	color: #000000;
}
INPUT{
	border-top: 1px solid #999999;
	border-left: 1px solid #999999;
	border-right: 1px solid #999999;
	border-bottom: 1px solid #999999;
	font-family: Tahoma, Verdana, Geneva, Trebuchet MS, Arial, Sans-serif;
	font-size: 12px;
}
 </style>
  <body>
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
     <td height="25" colspan="3"><b>导出选项</b></td>
  </tr>
  <tr>
     <td height="1" colspan="3"><hr height="1"></td>
  </tr>
  <tr>
     <td width="35%" height="25"><b>起始条数</b></td>
     <td width="60%" height="25"><input type="text" name="startRows" id="startRows" value="1" size="5"></td>
     <td width="5%" height="25">&nbsp;</td>
  </tr>
  <tr>
     <td width="35%" height="25"><b>截止条数</b></td>
     <td width="60%" height="25"><input type="text" name="endRows" id="endRows" value="10000" size="5"></td>
     <td width="5%" height="25">&nbsp;</td>
  </tr>
  <tr>
     <td width="35%" height="25"><b>全部数据</b></td>
     <td width="60%" height="25">
        <select name="allRows" id="allRows">
        <option value="N">否</option>
        <option value="Y">是</option>
        </select>
     </td>
     <td width="5%" height="25">&nbsp;</td>
  </tr>
  <tr>
     <td height="1" colspan="3"><hr height="1"></td>
  </tr>
  <tr>
     <td height="25" colspan="3" align="center"><input type="button" name="ok" value=" 确  定 " onclick="Export();">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="qx" value=" 取  消 " onclick="CancelExport();"></td>
  </tr>
  </table>
  <script type="text/javascript">
  function Export(){
  	var allRows = document.getElementById("allRows").value;
  	var startRows = document.getElementById("startRows").value;
  	var endRows = document.getElementById("endRows").value;
  	// 参数
  	var result = new Object();
  	result.allRows = allRows;
  	// 验证
  	if (allRows == "N"){
  		if ( endRows*1 < startRows*1 ){
  			alert("截止条数必须大于起始条数！");
  			return false;
  		}
  	}else{
  		startRows = 0;
  		endRows = 0;
  	}
  	// 返回
  	result.startRows = startRows;
	result.endRows = endRows;
	window.returnValue = result;
	self.close();
  }
  function CancelExport(){
  	self.close();
  }
  </script>
  </body>
</html>